<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
 <meta charset="UTF-8">
    <title>学生修改</title>
    <style>
        body {
            background-color: #f2f2f2;
            font-family: Arial, sans-serif;
            color: #333;
        }

        form {
            background-color: #fff;
            padding: 20px;
            border-radius: 5px;
            width: 400px;
            margin: 0 auto;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        }

        form input[type="text"] {
            width: 100%;
            padding: 10px;
            margin-bottom: 10px;
            border-radius: 3px;
            border: 1px solid #ccc;
        }

        form input[type="submit"] {
            width: 100%;
            padding: 10px;
            background-color: #4caf50;
            color: #fff;
            border: none;
            border-radius: 3px;
            cursor: pointer;
        }

        p {
            color: #4caf50;
            margin-top: 10px;
            text-align: center;
        }
    </style>
</head>
<body>
    <form th:action="@{/manong/gotoUpdateStudent}" method="post">
学号：<input type="text" name="sno" th:placeholder="${student.sno}" required><br>
姓名：<input name="name" type="text" th:placeholder="${student.name}" required><br><br>
性别：<input name="sex" type="text" th:placeholder="${student.sex}" required><br><br>
密码：<input name="password" type="text" th:placeholder="${student.password}" required><br><br>
身份证号：<input name="id" type="text" th:placeholder="${student.id}" required><br><br>
所属学院：<input name="college" type="text" th:placeholder="${student.college}" required><br><br>
专业：<input name="speciality" type="text" th:placeholder="${student.speciality}" required><br><br>
班级：<input name="clase" type="text" th:placeholder="${student.clase}" required><br><br>
年级：<input name="year" type="text" th:placeholder="${student.year}" required><br><br>
籍贯：<input name="nativePlace" type="text" th:placeholder="${student.nativePlace}" required><br><br>
电话号码：<input name="phone" type="text" th:placeholder="${student.phone}" required><br><br>
密保：<input name="confident" type="text" th:placeholder="${student.confident}" required><br><br>
        <input type="submit" name="submit" value="修改" onclick="return confirm('确定要修改吗')">
    </form>

    <p th:if="${msg}" th:text="${msg}"></p>
</body>
</html>